<?php


namespace app\api\controller\v1;


use app\api\controller\BaseController;
use app\services\exam\ExamRecordService;
use think\facade\App;

class UserScore extends BaseController
{
    public function __construct(App $app,ExamRecordService  $service)
    {
        parent::__construct($app);
        $this ->services = $service;
    }

    /*
     * 学生章节视频记录
     */
    public function index()
    {
        $where = $this->request->postMore([
            ['website_id', $this->website],
            ['class_id', ''],
            ['idcard', ''],
            ['user_id','']
        ]);
        return app()->make('json')->successful($this->services->getScore($where));
    }

}